{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% block keywords %}{{ setting('site.seo_keywords') }}{% endblock %}
{% block description %}{{ setting('site.seo_description') }}{% endblock %}

{% set bodyClass = 'homepage' %}
{% set siteNav = '/' %}
{% set script_controller = 'theme/controller/index' %}

{% set blocks = data('Blocks', {'codes':['graceful:home_top_banner'] }) %}
{% block content %}
  <div class="row">
    <!-- main -->
    <div class="main col-md-8">
      <!-- banner-->
      {% if blocks['graceful:home_top_banner'] %}

       <div class="homepage-feature homepage-feature-slides ">
          {{ blocks['graceful:home_top_banner']|raw }}
          <div class="cycle-pager"></div>
            <div class="slide-nav cycle-prev"><span class="iconfont icon-zuojiantou"></span></div>
            <div class="slide-nav cycle-next"><span class="iconfont icon-jiantou"></span>
          </div>
       </div>
      {% endif %}

      {% for pendant in themeConfig.blocks.left|default([]) %}

        {{ render(controller('GracefulThemeBundle:GracefulThemeWeb:pendant', {config:pendant})) }}
        
      {% endfor %}

    </div>


    <!-- aside -->
    <div class="col-md-4">
      {% for pendant in themeConfig.blocks.right|default([]) %}

        {{ render(controller('GracefulThemeBundle:GracefulThemeWeb:pendant', {config:pendant})) }}
        
      {% endfor %}
    </div>
  </div>
{% endblock %}
